package wcg;

import ikelib.wintime;

import java.util.TreeMap;


public class ChannelOutlineDataCollection {
	private TreeMap<Integer,ChannelOutlineData> ChDat = new TreeMap<Integer,ChannelOutlineData>();
	ChannelOutlineDataCollection(){
	}
	
	public void addChannelData(ChannelOutlineData d){
		int key=d.getTime().getValueS();
		ChDat.put(key,d);
	}
	/**
	 * 
	 * @return TreeMap<Integer,ChannelOutlineData>
	 */
	public TreeMap<Integer,ChannelOutlineData> getChannelData(){
		return ChDat;
	}
	/**
	 * 
	 * @param tm
	 * @return ChannelOutlineData
	 */ 
	public ChannelOutlineData getChannelData(wintime tm){
		return ChDat.get(tm.getValueS());
	}


}
